package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_open_minigame_chose", autoSave = true)
public class LogOpenMiniGameChose {
    @FieldTypeAnnotation(isIndex = true)
    long userId;
    @FieldTypeAnnotation(desc = "小游戏ID")
    int gameId;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogOpenMiniGameChose(long userId, int gameId) {
        this.userId = userId;
        this.gameId = gameId;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public int getGameId() {
        return gameId;
    }

    public Date getLogTime() {
        return logTime;
    }
}
